﻿(function (winjs) {

    var idToBackground = winjs.Binding.converter(function (id) {
        if (id == 1) {
            return "-ms-linear-gradient(bottom left, #000000 0%, #006695 100%)";
        } else {
            return "-ms-linear-gradient(bottom left, #000000 0%, #956630 100%)";
        }

    });

    // Export shortDate
    winjs.Namespace.define("Demo.Converters", {
        idToBackground: idToBackground
    });

})(WinJS);